package com.huatai.bpmn.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huatai.bpmn.entity.RoleEntity;
import com.huatai.bpmn.service.RoleService;
import com.huatai.bpmn.mapper.RoleMapper;
import com.huatai.common.api.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 聂贞吉
* @description 针对表【tb_role】的数据库操作Service实现
* @createDate 2023-07-13 11:22:06
*/
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, RoleEntity> implements RoleService{

	@Autowired
	private RoleService roleService;

	@Override
	public R<String> removeRoleById(String id) {
		return roleService.remove(new LambdaQueryWrapper<RoleEntity>()
			.eq(RoleEntity::getRoleId,id))==true?R.data("删除角色成功"):R.data("删除角色失败");
	}
}




